<!-- eslint-disable vue/valid-v-slot -->
<template>
  <div class="ParameterConfig">
    <!-- 输入参数 -->
    <input-parameters></input-parameters>
    <!-- 请求Body -->
    <template v-if="apiDetail.apiRequestMethod == 'POST'">
      <request-body></request-body>
    </template>
    <!-- 返回参数 -->
    <response-parameters></response-parameters>
  </div>
</template>
<script lang="ts" setup>
  import InputParameters from '../components/InputParameters.vue';
  import RequestBody from './RequestBody.vue';
  import ResponseParameters from './ResponseParameters.vue';
  import { getInterfaceDetailsHooks } from '@/hooks/InterfaceManagementHooks/getInterfaceDetailsHooks';
  // 引入hooks
  const { apiDetail } = getInterfaceDetailsHooks();
</script>
<style lang="less" scoped></style>
